import axios from '../../axios.js';
const LOGS = '/logs';
const logs = {
    // 获取登录信息
    getLogs: function (params) {
        return axios({
            url: LOGS + "/getLogs",
            method: 'get',
            params
        })
    },
    // 删除登录信息
    deleteLogs: function (data) {
        return axios({
            url: LOGS + "/deleteLogs",
            method: 'post',
            data
        })
    },
    // 登录后向数据库增加内容
    addLogsMsg: function (data) {
        return axios({
            url: LOGS + "/addLogsMsg",
            method: 'post',
            data
        })
    },
    // 搜索 (传入用户账户)
    seekLogsUser: function (data) {
        return axios({
            url: LOGS + "/seekLogsUser",
            method: 'post',
            data
        })
    },
    // 搜索 (传入执行结果)
    seekLogsResult: function (data) {
        return axios({
            url: LOGS + "/seekLogsResult",
            method: 'post',
            data
        })
    },
    // 搜索 (传入执行操作)
    seekLogsHandle: function (data) {
        return axios({
            url: LOGS + "/seekLogsHandle",
            method: 'post',
            data
        })
    },
    // 搜索 (传入执行时间)
    seekLogsTime: function (data) {
        return axios({
            url: LOGS + "/seekLogsTime",
            method: 'post',
            data
        })
    },
}
export default logs;